package com.quanxiaoha.xiaohashu.kv.api;


import com.quanxiaoha.framework.common.response.Response;
import com.quanxiaoha.xiaohashu.kv.constant.ApiConstants;
import com.quanxiaoha.xiaohashu.kv.dto.req.AddNoteContentReqDTO;
import com.quanxiaoha.xiaohashu.kv.dto.req.DeleteNoteContentReqDTO;
import com.quanxiaoha.xiaohashu.kv.dto.req.FindNoteContentReqDTO;
import com.quanxiaoha.xiaohashu.kv.dto.rsp.FindNoteContentRspDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: jingyan_liu
 * @CreateTime: 2025-07-25
 * @Description:
 * @Version: 1.0
 */


@FeignClient(name = ApiConstants.SERVICE_NAME)
public interface KeyValueFeignApi {
	
	String PREFIX = "/kv";
	
	@PostMapping(value = PREFIX + "/note/content/add")
	Response<?> addNoteContent(@RequestBody AddNoteContentReqDTO addNoteContentReqDTO);
	
	@PostMapping(value = PREFIX + "/note/content/find")
	Response<FindNoteContentRspDTO> findNoteContent(@RequestBody FindNoteContentReqDTO findNoteContentReqDTO);
	
	@PostMapping(value = PREFIX + "/note/content/delete")
	Response<?> deleteNoteContent(@RequestBody DeleteNoteContentReqDTO deleteNoteContentReqDTO);
}
